package com.yida.gwj.common.domain;

import com.yida.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;


/**
 * Mq消息日志对象 gwj_mq_message_log
 *
 * @author lgp
 * @date 2023-03-09
 */
@ApiModel("Mq消息日志")
public class GwjMqMessageLog extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private Long messageId;

    @ApiModelProperty(value = "业务标识")
    private String serverIdentification;

    @ApiModelProperty("消息主题")
    private String messageTopic;

    @ApiModelProperty("消息标签")
    private String messageTag;

    @ApiModelProperty("唯一消息键")
    private String messageKey;

    /**
     * 发送时间
     */
    @ApiModelProperty("发送时间")
    private LocalDateTime sendTime;

    /**
     * 发送内容
     */
    @ApiModelProperty("发送内容")
    private String content;

    /**
     * 发送结果
     */
    @ApiModelProperty("发送状态 0:失败 1:成功")
    private boolean status;

    @ApiModelProperty("调用方")
    private String method;

    @ApiModelProperty("消息延迟等级")
    private Integer messageLevel;

    public Integer getMessageLevel() {
        return messageLevel;
    }

    public void setMessageLevel(Integer messageLevel) {
        this.messageLevel = messageLevel;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public boolean getStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public Long getMessageId() {
        return messageId;
    }

    public void setMessageId(Long messageId) {
        this.messageId = messageId;
    }

    public String getServerIdentification() {
        return serverIdentification;
    }

    public void setServerIdentification(String serverIdentification) {
        this.serverIdentification = serverIdentification;
    }

    public String getMessageKey() {
        return messageKey;
    }

    public void setMessageKey(String messageKey) {
        this.messageKey = messageKey;
    }

    public boolean isStatus() {
        return status;
    }

    public void setSendTime(LocalDateTime sendTime) {
        this.sendTime = sendTime;
    }

    public LocalDateTime getSendTime() {
        return sendTime;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public String getMessageTopic() {
        return messageTopic;
    }

    public void setMessageTopic(String messageTopic) {
        this.messageTopic = messageTopic;
    }

    public String getMessageTag() {
        return messageTag;
    }

    public void setMessageTag(String messageTag) {
        this.messageTag = messageTag;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("GwjMqMessageLog{");
        sb.append("messageId=").append(messageId);
        sb.append(", serverIdentification='").append(serverIdentification).append('\'');
        sb.append(", messageTopic='").append(messageTopic).append('\'');
        sb.append(", messageTag='").append(messageTag).append('\'');
        sb.append(", messageKey='").append(messageKey).append('\'');
        sb.append(", sendTime=").append(sendTime);
        sb.append(", content='").append(content).append('\'');
        sb.append(", status=").append(status);
        sb.append(", method='").append(method).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
